CC = gcc
CFLAGS = 
SOURCES = $(wildcard src/*.c)
OBJS = $(patsubst src/%.c,obj/%.o,$(SOURCES))
EXEC = rcp

all: build clean

build: $(OBJS)
	$(CC) $(LFLAGS) $(OBJS) -o $(EXEC)

obj/%.o: src/%.c
	$(CC) -c $(CFLAGS) $< -o $@

clean:
	rm -r obj/*
